import {request} from 'umi';

interface DictTypeParams {
  pageSize?: number;
  current?: number;
}

export async function getDictTypePage(params: DictTypeParams) {
  return request('/api/dictType/page', {
    method: 'GET',
    params,
  });
}

export async function getDictDataList(params: { dictType: string }) {
  return request('/api/dictData/list', {
    method: 'GET',
    params,
  });
}
